package com.example.campusforumapi.dao;

import com.example.campusforumapi.entity.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentMapper {
    /*
     * 返回评论数据列表
     * */
    List<Comment> list(Integer userId, String commentType, Integer commentId, Integer targetId, String content);
    /*
     * 删除
     * @paramComment
     * */
    int delComment(List<Integer> ids);
    /*
     * 修改
     * @paramComment
     * */
    int updComment(Comment comment);
}
